<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%-- JSTL表达式（判断，循环，输出） --%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> <%-- 方法表达式（字符串截取，替换） --%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<c:forEach var="article" items="${pageBean.list}">
<li class="transition">
    <div class="travel-box">
        <img class="wh_" src="${article.articlePic}">
        <div class="title-box transition">
            <div class="titwrite.pngle">
                ${article.articleTitle}
            </div>
            <p class="content">
                ${article.articleAbstract}
            </p>
            <a class="link transition" href="<%=basePath%>article/getArticleDetails/${article.articleId}">
                查看更多
            </a>
        </div>
    </div>
</li>
</c:forEach>

<c:if test="${pageBean.totalPage <= pageBean.currentPage}">
    <script>
        $("#loadArticles").html('没有更多了').css("color","#ccc");
    </script>
</c:if>
<script src="<%=basePath%>js/height.js"></script>
